package com.bluegalaxy.nhb.snapi.controller.api.ck;


import com.bluegalaxy.nhb.snservice.domain.constant.AppConstant;
import com.bluegalaxy.nhb.snservice.domain.vo.api.R;
import com.bluegalaxy.nhb.snservice.service.syn.SynService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 数据同步
 */
@RestController
@RequestMapping(AppConstant.APPLICATION_NAME+"/data/syn")
@Api(value = "数据同步", tags = "数据同步API")
public class SynController {
    private static Log log = LogFactory.getLog(SynController.class);

    @Autowired
    private SynService synService;



    @ResponseBody
    @PostMapping("/users")
    @ApiOperation(value = "用户属性从users表同步", notes = "用户属性从users表同步")
    public R synUsers() {

        return synService.synUsers();
    }


}
